package stringexercise;

public class LengthDemo2 {
    public static void main(String[] args) {
        String str="我爱java!";
        int len=str.length();
        System.out.println(len);//7
    }
}
